package org.example.model;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Component("food")
@Data
public class Food {
    private Integer id;
    private String name;
    private String image;
    private Double rating;
    private String description;
    private List<String> features; // 直接存储标签名称
    private Integer[] featureId; // 存储标签ID

    //分页查询参数
    private  Integer pageNo;//当前页码
    private  Integer pageSize;//每页显示的数量
    private  Integer start;

    private String keywords; //搜索关键字

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", rating=" + rating +
                ", description='" + description + '\'' +
                ", features=" + features +
                ", featureId=" + Arrays.toString(featureId) +
                ", pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", start=" + start +
                ", keywords='" + keywords + '\'' +
                '}';
    }
}
